package com.sxt.demo.djiapplication.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Keep;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;


@Entity(nameInDb = "way_point_record_list")
public class WayPointRecordItem {

    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    private Long id;

    @Property(nameInDb = "latitude")
    private double latitude;

    @Property(nameInDb = "longitude")
    private double longitude;

    @Property(nameInDb = "altitude")
    private float altitude;

    @Property(nameInDb = "speed")
    private float speed;

    @Property(nameInDb = "order")
    private int order;

    @Property(nameInDb = "need_take_pic")
    private boolean needTakePic;

    private Long recordId;

    @Keep
    public WayPointRecordItem(Long recordId, double latitude, double longitude,
                              float altitude, int order, float speed, boolean needTakePic) {
        this.recordId = recordId;
        this.latitude = latitude;
        this.longitude = longitude;
        this.altitude = altitude;
        this.order = order;
        this.speed = speed;
        this.needTakePic = needTakePic;
    }

    public WayPointRecordItem() {
    }

    @Generated(hash = 517334898)
    public WayPointRecordItem(Long id, double latitude, double longitude, float altitude,
                              float speed, int order, boolean needTakePic, Long recordId) {
        this.id = id;
        this.latitude = latitude;
        this.longitude = longitude;
        this.altitude = altitude;
        this.speed = speed;
        this.order = order;
        this.needTakePic = needTakePic;
        this.recordId = recordId;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public double getLatitude() {
        return this.latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return this.longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public float getAltitude() {
        return this.altitude;
    }

    public void setAltitude(float altitude) {
        this.altitude = altitude;
    }

    public float getSpeed() {
        return this.speed;
    }

    public void setSpeed(float speed) {
        this.speed = speed;
    }

    public Long getRecordId() {
        return this.recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public int getOrder() {
        return this.order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public boolean getNeedTakePic() {
        return this.needTakePic;
    }

    public void setNeedTakePic(boolean needTakePic) {
        this.needTakePic = needTakePic;
    }

}
